import request from '@/utils/request'

// 查询组间规则信息列表
export function listGroupinterrules(query) {
  return request({
    url: '/system/groupinterrules/list',
    method: 'get',
    params: query
  })
}

// 查询组间规则信息详细
export function getGroupinterrules(id) {
  return request({
    url: '/system/groupinterrules/' + id,
    method: 'get'
  })
}

// 新增组间规则信息
export function addGroupinterrules(data) {
  return request({
    url: '/system/groupinterrules',
    method: 'post',
    data: data
  })
}

// 修改组间规则信息
export function updateGroupinterrules(data) {
  return request({
    url: '/system/groupinterrules',
    method: 'put',
    data: data
  })
}

// 删除组间规则信息
export function delGroupinterrules(id) {
  return request({
    url: '/system/groupinterrules/' + id,
    method: 'delete'
  })
}
